<?php
namespace Amis\form;
class FieldSet extends FormItem
{
    public string $type = 'input-';

    public function headingClassName(string $headingClassName)
    {
        $this->headingClassName = $headingClassName;
        return $this;
    }

    public function bodyClassName(string $bodyClassName)
    {
        $this->bodyClassName = $bodyClassName;
        return $this;
    }

    public function title(string $title)
    {
        $this->title = $title;
        return $this;
    }

    public function body(array $body)
    {
        $this->body = $body;
        return $this;
    }

    public function mode(string $mode)
    {
        $this->mode = $mode;
        return $this;
    }

    public function collapsable(bool $collapsable = false)
    {
        $this->collapsable = $collapsable;
        return $this;
    }

    public function collapsed(bool $collapsed = false)
    {
        $this->collapsed = $collapsed;
        return $this;
    }

    public function collapseTitle(string $collapseTitle = '收起')
    {
        $this->collapseTitle = $collapseTitle;
        return $this;
    }
}